Add a new business location
PATCH /api/v1/businesses/:businessId/locations
Description
Add a new business location.
Request
-
Authentication:
- Type: Bearer Token
- Token:
{{bearerToken}}(Replace with the actual bearer token)
-
URL:
- Raw URL:
/api/v1/businesses/:businessId/locations - Host:
- Path:
/api/v1/businesses/:businessId/locations - Variables:
- businessId: (Required)
- Raw URL:
Response:
- Status: OK (200)
/api/v1/businesses/:businessId/locations
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Body (raw)
{
"address": "<string>",
"country": {
"name": "<string>",
"code": "<string>",
"currency": "<string>"
},
"state": {
"name": "<string>",
"code": "<string>"
},
"lga": {
"name": "<string>",
"code": "<string>"
},
"latitude": "<number>",
"longitude": "<number>",
"userId": "<string>"
}
🔑 Authentication bearer
| Param | value | Type |
|---|---|---|
| token | bearerToken | string |
Response: 200
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/businesses/:businessId/locations \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!